package com.ita.homework.two;

public class PortabilityFunc {

	public static void myRanPro(int times) {
		int[] as = new int[11];

		for (int i = 0; i < times; i++) {
			int rs = (int) (Math.random() * 10) + 1;
			int sec = (int) (Math.random() * 1000) + 1;
			if (sec <= 230)
				rs = 5;
			as[rs]++;
		}

		for (int i = 1; i < as.length; i++) {
			System.out.println(i + "\t" + as[i]);
		}

	}

}
